﻿@using NewRen.Models
@{
    ViewBag.Title = "牛人展示";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
    User user = ViewBag.User as User;
}
<div class="row wrapper border-bottom white-bg page-heading">
    <div class="col-lg-10">
        <h2>牛人信息展示</h2>
        <ol class="breadcrumb">
            <li>
                <a href="index.html">后台管理</a>
            </li>
            <li>
                <a href="index.html">牛人管理</a>
            </li>
            <li>
                <a>牛人信息展示</a>
            </li>
        </ol>
    </div>
</div>
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>牛人信息展示 <small>@user.UserName</small></h5>
                </div>
                <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <table class="detail-table">
                            <tr>
                                <td class="row-title">用户名</td>
                                <td>@user.UserName</td>
                            </tr>
                            <tr>
                                <td class="row-title">真实姓名</td>
                                <td>@user.RealName</td>
                            </tr>
                            <tr>
                                <td class="row-title">性别</td>
                                <td>@user.Sex</td>
                            </tr>
                            <tr>
                                <td class="row-title">手机</td>
                                <td>@user.Phone</td>
                            </tr>
                            <tr>
                                <td class="row-title">工作</td>
                                <td>@user.Job</td>
                            </tr>
                            <tr>
                                <td class="row-title">自我描述</td>
                                <td>@user.Description</td>
                            </tr>
                            <tr>
                                <td class="row-title">优先级</td>
                                <td>@user.Priority</td>
                            </tr>
                            <tr>
                                <td class="row-title">认证</td>
                                <td>@(user.IsVerified == true ? "是" : "否")</td>
                            </tr>
                            <tr>
                                <td class="row-title">城市</td>
                                <td>@user.City</td>
                            </tr>
                            <tr>
                                <td class="row-title">地址</td>
                                <td>@user.Address</td>
                            </tr>
                            <tr>
                                <td class="row-title">图像</td>
                                <td>
                                    @if (user.Picture == null)
            {
                                        <img src="/Images/userphoto.png" width="50" height="50"
                                             alt=@user.UserName style="border-radius:50%;" />
                                    }
                                    else
                                    {
                                        <img src="/User/ShowPicture/@user.ID" width="50"
                                             alt=@user.UserName height="50" style="border-radius:50%;" />
                                    }
                                </td>
                            </tr>
                            <tr>
                                <td class="row-title">邮箱</td>
                                <td>@user.Email</td>
                            </tr>
                            <tr>
                                <td class="row-title">QQ</td>
                                <td>@user.QQ</td>
                            </tr>
                            <tr>
                                <td class="row-title">生日</td>
                                <td>@user.Birthday</td>
                            </tr>
                            <tr>
                                <td class="row-title">积分</td>
                                <td>@user.Integration</td>
                            </tr>
                            <tr>
                                <td class="row-title">金钱</td>
                                <td>@user.Money</td>
                            </tr>
                            <tr>
                                <td class="row-title">总访问量</td>
                                <td>@user.PV</td>
                            </tr>
                            <tr>
                                <td class="row-title">今日访问量</td>
                                <td>@user.TodayPV</td>
                            </tr>
                            <tr>
                                <td class="row-title">赞数</td>
                                <td>@user.Ups</td>
                            </tr>
                            <tr>
                                <td class="row-title">踩数</td>
                                <td>@user.Downs</td>
                            </tr>
                            <tr>
                                <td class="row-title">微信</td>
                                <td>@user.WhatApp</td>
                            </tr>
                            <tr>
                                <td class="row-title">注册时间</td>
                                <td>@user.AddTime</td>
                            </tr>
                            <tr>
                                <td class="row-title">上次登录时间</td>
                                <td>@user.LastLogin</td>
                            </tr>
                            <tr>
                                <td class="row-title">所属牛棚</td>
                                <td>@(user.UserGroupID == null ? "无" : "asd")</td>
                            </tr>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
